import request from "@/utils/http"
import type { MemberInfo, MemberUpdateParams } from'@/types/MemberInfo'

// 获取个人基本信息
export const getMemberInfoApi = () => {
  return request<MemberInfo>({
    url:'ums/front/member/info',
    method:'GET',
  })
}

// 修改头像
export const updateHeaderApi = (header:string) => {
  return request({
    url:'ums/front/member/header',
    method:'PUT',
    data:header,
  })
}


// 修改用户基本信息
export const updateMemberInfoApi = (data:MemberUpdateParams) => {
  return request({
    url:'ums/front/member/update',
    method:'PUT',
    data,
  })
}